package pers.fjl.test.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import pers.fjl.common.entity.QueryPageBean;
import pers.fjl.common.po.Staff;

public interface StaffService extends IService<Staff> {
    /**
     * 查询用户
     *
     * @param queryPageBean
     * @return list
     */
    Page<Staff> findPage(QueryPageBean queryPageBean);

    /**
     * 添加用户
     * @param staff
     * @return flag
     */
    boolean addStaff(Staff staff);

    /**
     * 查询职员是否存在
     *
     * @param sname
     * @return flag
     */
    boolean StaffExist(String sname);
}
